package com.blackhorse.service;

import com.blackhorse.dao.AccountDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component("accountServiceImplAnno")
public class AccountServiceImplAnno implements AccountService {
    //自动类型注入
    @Autowired
    @Qualifier("accountDaoImplAnno")
    //@Resource(name = "accountDaoImplAnno")
    private AccountDao accountDao;

    @Override
    public void saveAccount() {
        accountDao.saveAccount();
    }
}
